﻿using System;
using System.Collections.Generic;
using MgSoft.K3Cloud.WebApi.Common.Dto.Bd;
using MgSoft.K3Cloud.WebApi.Dto;

namespace MgSoft.K3Cloud.WebApi.Supplier.Api.Bd
{
    /// <summary>
    /// 供应商联系人
    /// </summary>
    public class Bb_SupplierContactApi : BaseApi, IBb_SupplierContactApi
    {
        public Bb_SupplierContactApi(ApiServerInfo apiServerInfo, IMgLogger logger = null) : base(apiServerInfo, logger)
        {
        }

        public Bb_SupplierContactApi(string serverUrl, string dbid, string userName, string password, int lcid = 2052) : base(serverUrl, dbid, userName, password, lcid)
        {
        }

        protected override string formId => "BD_SupplierContact";
        public List<SaveOutPutDto> Save(Bd_SupplierContactSaveInputDto inputDto)
        {
            return base.Save(new SaveInputDto()
            {
                Model = inputDto
            });
        }
    }
}
